package com.origin.utils.gson

class BaseResponse<T> {
    var code = 0
    var data: T? = null
        private set
    var msg: String? = null
    fun setData(data: T?) {
        this.data = data
    }

    override fun toString(): String {
        return "BaseResponse{" +
                "code=" + code +
                ", data=" + data +
                ", msg='" + msg + '\'' +
                '}'
    }
}